package com.woan.api.services;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.woan.api.util.DateJsonValueProcessor;
import com.woan.api.util.PushAsync;
import com.woan.api.vo.VmessageList;
import com.woan.api.idao.SysAdmininfoIDAO;
import com.woan.api.idao.SysUpgradeIDAO;
import com.woan.api.model.SysAdmininfo;
import com.woan.api.model.SysUpgrade;


import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JsonConfig;



public class UpgradeServerServices {
	private SysAdmininfoIDAO sysadmininfoiDAO;
	private SysUpgradeIDAO sysupgradeiDAO;
	public SysAdmininfoIDAO getSysadmininfoiDAO() {
		return sysadmininfoiDAO;
	}
	public void setSysadmininfoiDAO(SysAdmininfoIDAO sysadmininfoiDAO) {
		this.sysadmininfoiDAO = sysadmininfoiDAO;
	}

	public SysUpgradeIDAO getSysupgradeiDAO() {
		return sysupgradeiDAO;
	}
	public void setSysupgradeiDAO(SysUpgradeIDAO sysupgradeiDAO) {
		this.sysupgradeiDAO = sysupgradeiDAO;
	}
	/*
	 * 获取本组历史消息
	 */
	public SysUpgrade listNewVersion(String groupname,String username,String userpwd,String os,String vername){
		
		SysAdmininfo user = null;
		user = sysadmininfoiDAO.FindUserByGroupNameAndUsername(groupname,username,userpwd);
		SysUpgrade sysupgrade= null;
		sysupgrade = sysupgradeiDAO.FindNewVersion(os, vername);
		return sysupgrade;
	}


}
